from pydantic_settings import BaseSettings

class Settings(BaseSettings):
    # API配置
    API_V1_STR: str = "/api"
    PROJECT_NAME: str = "PDF工具箱 API"
    
    # 文件配置
    MAX_FILE_SIZE: int = 10 * 1024 * 1024  # 10MB
    ALLOWED_EXTENSIONS: dict = {
        "pdf": [".pdf"],
        "image": [".png", ".jpg", ".jpeg"],
        "document": [".pdf", ".docx", ".pptx"]
    }
    
    # OCR配置
    OCR_LANGUAGES: dict = {
        "中文+英文": "chi_sim+eng",
        "仅中文": "chi_sim",
        "仅英文": "eng"
    }

settings = Settings() 